<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">{$type}</div>
</div>
<div class="bjui-pageContent">
    <if condition='ACTION_NAME eq "all"'>

        <div class="alert alert-info form-inline"> <i class="fa fa-warning"></i>
            只有开启静态缓存，才能使用此功能。 一键更新全站静态缓存(Html)。
        </div>
        <div class="operate">
            <div class="left">
                <form action="{:U('Clearhtml/all')}" method="post"   data-toggle="validate">

                    <button class="btn-default" type="submit">开始更新全站</button>
                </form>

            </div>
        </div>
    </if>

    <if condition='ACTION_NAME eq "home"'>

        <div class="alert alert-info form-inline"> <i class="fa fa-warning"></i>
            只有开启静态缓存，才能使用此功能。 更新首页静态缓存(Html)。
        </div>
        <div class="operate">
            <div class="left">
                <form action="{:U('Clearhtml/home')}" method="post"  data-toggle="validate">
                    <button class="btn-default" type="submit">开始首页</button>
                </form>
            </div>
        </div>
    </if>

    <if condition='ACTION_NAME eq "lists"'>
        <div class="alert alert-info form-inline">
            <i class="fa fa-warning"></i>
            只有开启静态缓存，才能使用此功能。 更新栏目列表静态缓存(Html)。
        </div>
        <div class="operate">
        </div>
        <div class="list">

            <form action="{:U('Clearhtml/lists')}" method="post"  data-toggle="validate">
                <button type="submit" class="btn-default">更新选中的栏目</button>
                <button type="button" class="btn-default" data-toggle="doajax" data-confirm-msg="确定要更新全部栏目吗？" data-url="{:U('Clearhtml/lists', array('isall' =>1))}">一键更新所有栏目</button>
                <table class="table table-bordered table-hover table-striped table-top" style="margin-top:5px">
                    <thead>
                        <tr>
                            <th>
                                <input type="checkbox" class="checkboxCtrl" data-group="key[]" data-toggle="icheck"></th>
                            <th>栏目</th>
                        </tr>
                    </thead>
                    <tbody>
                        <foreach name='cate' item='v'>
                            <tr>
                                <td>
                                    <input type="checkbox" name="key[]" data-toggle="icheck" value="{$v.id}"></td>
                                <td class="aleft">
                                    {$v.delimiter}
                                    <if condition="$v['pid'] neq 0">├─</if>
                                    {$v.name}
                                </td>
                            </tr>
                        </foreach>
                    </tbody>
                </table>
            </form>

        </div>

    </if>

    <if condition='ACTION_NAME eq "shows"'>
        <div class="alert alert-info form-inline">
            <i class="fa fa-warning"></i>
            只有开启静态缓存，才能使用此功能。 更新文档(内容页)静态缓存(Html)。
        </div>
        <div class="operate">
            
        </div>
        <div class="list">

            <form action="{:U('Clearhtml/shows')}" method="post"  data-toggle="validate">
                <button type="submit" class="btn-default">更新选中的栏目下文档</button>
                <button type="button" class="btn-default" data-toggle="doajax" data-confirm-msg="确定要更新全部文档吗？" data-url="{:U('Clearhtml/shows', array('isall' =>1))}">一键更新所有文档</button>

                <table class="table table-bordered table-hover table-striped table-top" style="margin-top:5px">
                    <tr>
                        <th>
                            <input type="checkbox" class="checkboxCtrl" data-group="key[]" data-toggle="icheck"></th>
                        <th>栏目</th>
                    </tr>
                    <foreach name='cate' item='v'>
                        <tr>
                            <td>
                                <input type="checkbox" name="key[]" value="{$v.id}" data-toggle="icheck" <if condition="$v.tablename eq 'page'">disabled="disabled"</if>
                        </td>
                        <td class="aleft">
                            {$v.delimiter}
                            <if condition="$v['pid'] neq 0">├─</if>
                            {$v.name}
                        </td>
                    </tr>
                </foreach>
            </table>
        </form>

    </div>

</if>

<if condition='ACTION_NAME eq "special"'>
    <div class="sub">
        <span>说明：</span>
        只有开启静态缓存，才能使用此功能。 更新专题静态缓存(Html)。
    </div>
    <div class="operate">
        <div class="left">
            <form action="" method="post" id="form_do" name="form_do">
                <input type="button" onclick="doGoSubmit('{:U('Clearhtml/special')}', 'form_do')" class="btn_blue" value="更新专题列表">
                <input type="button" onclick="doGoSubmit('{:U('Clearhtml/special', array('isall' =>1))}', 'form_do')" class="btn_green" value="一键更新所有专题"></form>

        </div>
    </div>

</if>
</div>
<div class="bjui-pageFooter">
<ul>
    <li>
        <button type="button" class="btn-close" data-icon="close">关闭</button>
    </li>

</ul>
</div>